from google.appengine.ext.webapp import template
from google.appengine.ext.db import djangoforms
from calportal.mainpage.models import Item, Comment 
from django import forms
from google.appengine.ext import db


class NewItemForm(djangoforms.ModelForm):
    class Meta:
        model = Item
        exclude = ['resource', 'created_by', 'due']
        
class NewCommentForm(djangoforms.ModelForm):
    class Meta:
        model = Comment
        fields = ['content']
        exclude = ['item_key', 'thumbs_up_count', 'thumbs_down_count']
        